package com.lin.cloud.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author longyang.lin
 * @description
 * @create 2018年03月22日14:20
 */
@RestController
public class ConfigClientController {

    @Value("${defined.address}")
    private String address;

    @Value("${server.auto.address}")
    private String autoAddress;

    @GetMapping("/address")
    public String get() {
        return this.address + "->" + this.autoAddress;
    }
}
